
import request from '@/utils/request'
let token = localStorage.getItem("token")
if (!!token){
  token=token.replace("\"","").replace("\"","");
}
/**
 * 获取电影列表
 */
export function getmovielist (params) {
  console.log('请求参数：',params)
  if(params.cityId === null){
    params.cityId = '110100'
    return request({
      method: 'GET',
      params:params,
      headers:{
        'X-Host':'mall.film-ticket.film.list'
      }
    })
  }else{
    return request({
      method: 'GET',
      params:params,
      headers:{
        'X-Host':'mall.film-ticket.film.list'
      }
    })
  }

}


/**
 * 获取电影详情页
 */
export function getmoviedtail (params) {
  return request({
    method: 'GET',
    params:params,
    headers:{
        'X-Host':'mall.film-ticket.film.info'
    }
  })
}

// mall.film-ticket.city.list